package org.gntc.prayer;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class PrayerTabActivity extends TabActivity {

	protected TabHost mTabHost = null;
	protected final static String TAB_SPEC_TAB_DEFAULT = "default";
	protected final static String TAB_SPEC_TAB_FAVORITE = "favorite";
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.main_tab);
	    
	    mTabHost = getTabHost();
	    
	    mTabHost.addTab(mTabHost.newTabSpec(TAB_SPEC_TAB_DEFAULT)
	    		.setIndicator(TAB_SPEC_TAB_DEFAULT)
	    		.setContent(new Intent(getApplicationContext(), PrayerListActivity.class)));
	    
	    mTabHost.addTab(mTabHost.newTabSpec(TAB_SPEC_TAB_FAVORITE)
	    		.setIndicator(TAB_SPEC_TAB_FAVORITE)
	    		.setContent(new Intent(getApplicationContext(), EditPrayerActivity.class)));
	    
	    mTabHost.setCurrentTabByTag(TAB_SPEC_TAB_DEFAULT);
	}

}
